undefined method `bytes' for for String in Ruby
Posted
by artsince
on Stack Overflow
See other posts from Stack Overflow
or by artsince
Published on 2010-05-02T23:15:44Z
Indexed on
2010/05/02
23:17 UTC
Read the original article
Hit count: 232
I am working with ruby 1.8.6 (2007-03-13 patchlevel 0) [x86_64-linux]
and I get
undefined method `bytes' for #<String:0x2a95ec2268> (NoMethodError)
even though my code works on ruby 1.8.7. patchlevel 249
I saw somewhere that you need to add require "jcode"
for a similar method not defined error with each_byte
. I tried adding that but it still does not work. Any suggestions are very appreciated.
© Stack Overflow or respective owner